﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WebEntities.Models.WebInfo
{
    public class Experts
    {
        /// <summary>
        /// 专家ID
        /// </summary>
        public int ExpertID { get; set; }
        /// <summary>
        /// 专家目录ID
        /// </summary>
        public int ExpertCataID { get; set; }
        /// <summary>
        /// 专家名称
        /// </summary>
        public string ExpertName { get; set; }
        /// <summary>
        /// 专家职位
        /// </summary>
        public string ExpertJob { get; set; }
        /// <summary>
        /// 专家职称
        /// </summary>
        public string ExpertPosition { get; set; }
        /// <summary>
        /// 专家头像
        /// </summary>
        public string ExpertPic { get; set; }
        /// <summary>
        /// 技能领域
        /// </summary>
        public string SkillField { get; set; }
        /// <summary>
        /// 主要成就、贡献
        /// </summary>
        public string Achievement { get; set; }
        /// <summary>
        /// 个人简介
        /// </summary>
        public string Introduction { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }
        /// <summary>
        /// 是否显示
        /// </summary>
        public int? IsShow { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public int? IsDelete { get; set; }
        /// <summary>
        /// 其他属性或者信息
        /// </summary>
        public string OtherMsg { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int? SortNum { get; set; }

        public static Experts AsExpert(WI_Experts obj)
        {
            Experts asObj = new Experts
            {
                ExpertID = obj.ExpertID,
                ExpertCataID = obj.ExpertCataID,
                Achievement = obj.Achievement,
                CreateTime = obj.CreateTime,
                ExpertJob = obj.ExpertJob,
                ExpertName = obj.ExpertName,
                ExpertPic = obj.ExpertPic,
                ExpertPosition = obj.ExpertPosition,
                Introduction = obj.Introduction,
                IsDelete = obj.IsDelete,
                IsShow = obj.IsShow,
                OtherMsg = obj.OtherMsg,
                SkillField = obj.SkillField,
                 SortNum=obj.SortNum

            };
            return asObj;
        }
    }
}
